Carbon


TimerProcPtr

Header: Timer.h Carbon status: Supported

typedef void(* TimerProcPtr) (
    TMTaskPtr tmTaskPtr
);

You would declare your function like this if you were to name it MyTimerCallback:

void MyTimerCallback (
    TMTaskPtr tmTaskPtr
);
Parameter descriptions
tmTaskPtr

A pointer to the task.

DISCUSSION

Your Time Manager callback function gets control when the delay time passed to PrimeTime has expired.

The tmAddr field of a Time Manager task structure contains the address of a task function that is executed after the delay time passed to PrimeTime.

Because the task function is executed at interrupt time, it should not allocate, move, or purge memory (either directly or indirectly) and should not depend on the validity of handles to unlocked blocks.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)